Tokenize
TheTokenize
method converts the specified type string to a token.
ODTypeToken Tokenize (in ODType type);
type
- A type string to be converted.
- return value
- A tokenized string representing the token corresponding to the specified type, expressed as a 32-bit value.
DISCUSSION
If the specified type string has already been converted to a token (by a previous call to theTokenize
method), this method returns the corresponding token from the type/token table. Otherwise, it converts the type to a token and adds a new entry to the type/token table.Only tokens with entries in the type/token table can be converted back to type strings (by the
GetType
method).EXCEPTIONS
kODErrOutOfMemory
- There is not enough memory to generate a token.
SEE ALSO
TheODTypeToken
type (page 877).
TheODSession::GetType
method (page 611).
TheODSession::RemoveEntry
method (page 613).
Listing 2-6 on page 45 in OpenDoc Cookbook.
"Defining General Display Characteristics" on page 158 in OpenDoc Programmer's Guide.
"Focus Types" on page 205 in OpenDoc Programmer's Guide.
"Part Kinds Supported by an Editor" on page 476 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help